from pydantic import BaseModel


class PageResult(BaseModel):
    current_page_num = 1
    page_size = 20
    data = []
    total_num = 0
    pages = 0

    @classmethod
    def to_dict(cls):
        pass


class Page:

    def __init__(self, page_num=1, page_size=20):
        self.page_num = page_num
        self.page_size = page_size
